import { _decorator,Component ,instantiate,Label,Node, Prefab, resources, Sprite, SpriteFrame } from 'cc';


const { ccclass, property } = _decorator;

@ccclass('BG')
export class BG extends Component {



    protected onLoad(): void {

        
    }

    protected onEnable(): void {
        this.node.on(Node.EventType.TOUCH_END, this.onButtonCloseWindow, this);
        
    }

    protected onDisable(): void {
        this.node.off(Node.EventType.TOUCH_END, this.onButtonCloseWindow, this);
        
    }

    onButtonCloseWindow() {
        this.node.parent.active = false;
    }



}


